package com.trendit.print.sdk.models.printer;

import com.alibaba.fastjson.JSON;
import com.trendit.print.sdk.DaquObject;
import com.trendit.print.sdk.DaquRequest;

import java.util.List;

/**
 * 解绑打印机
 */
public class DeletePrinterRequest implements DaquRequest<DeletePrinterResponse> {

    private String bizContent;

    /**
     * 构造方法
     */
    public DeletePrinterRequest(List<String> deviceNos) {
        this.bizContent = JSON.toJSONString(deviceNos);
    }

    @Override
    public String getApiMethodName() {
        return "openapi.deletePrinter";
    }

    @Override
    public String getApiVersion() {
        return "1.0";
    }

    @Override
    public String getNotifyUrl() {
        return null;
    }

    @Override
    public String getApiMethodURL() {
        return "/openapi/delete_printer";
    }

    @Override
    public Class<DeletePrinterResponse> getResponseClass() {
        return DeletePrinterResponse.class;
    }

    @Override
    public DaquObject getBizModel() {
        return null;
    }

    @Override
    public String getBizContent() {
        return bizContent;
    }

}
